package de.thw.web.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import de.thw.web.dao.JobDAO;
import de.thw.web.model.Job;
import de.thw.web.service.JobService;

@Service
public class JobServiceImpl extends AbstractServiceImpl<Job> implements
		JobService {

	@Autowired
	private JobDAO daoJob;

	// /////////////////////////////////////////////////////////////////////////////

	@Transactional
	public void save(Job object) {
		super.save(object, this.daoJob);
	};

	@Transactional
	public Job load(String uid) {
		return super.load(uid, this.daoJob);
	};

	@Transactional
	public List<Job> getAll() {
		return super.getAll(this.daoJob);
	};

};